<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>

</body>
<script>
	function fn(){
		throw "异常"
	}
	const p =  new Promise((resolve,reject)=>{
		const result = fn();
		resolve(result);
	})
	console.log(p);
</script>
</html>